<?php get_header(); ?>
<div id="mainbody">
	<?php if ( is_search() ) {  ?>
    <div class="mainsearch">Search Status: "<?php echo $s; ?>"</div>
    <?php } else { ?>
    <?php if (get_option('yoshz_featured') == "on") { ?>
    <div class="featured">
    	<?php include (TEMPLATEPATH . '/gallery.php'); ?>
    </div>
    <?php } ?>
    <?php } $postcount = 1; if (have_posts()) : while (have_posts()) : the_post(); ?>
	<div class="content">
    	<?php if (getImage() != ""){ ?>
        	<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo getImage(); ?>&h=150&w=281&zc=1" class="center" />
        <?php } ?>
    	<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
        <div class="submain">Posted By: <?php the_author() ?> on <?php the_time('F, d Y') ?>  </div>
    	<div class="clear"></div>
        <div class="maincontent">
            <?php excerpt('30'); ?>
        </div>
        <div class="maincom"><?php comments_popup_link('No Comment', '1 Comment', '% Comments'); ?> | <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Read More &raquo;</a></div>
    	<div class="clear"></div>
    </div>
    <?php if ($postcount == 2 || $postcount == 4 || $postcount == 6 || $postcount == 8 || $postcount == 10) : ?>
    	<div class="clear"></div>
    <?php endif; $postcount++; ?>
    <?php endwhile; ?>
    <div class="clear"></div>
    <?php include (TEMPLATEPATH . '/paginate.php'); else : include (TEMPLATEPATH . '/404.php'); endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<?php get_foot(); ?>